package com.castle.fortress.admin.member.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
/**
 * 会员收藏表 实体类
 *
 * @author castle
 * @since 2023-02-14
 */
@Data
@TableName("member_collect")
public class MemberCollectEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 00 课程
	*/
	private String collectType;
	/**
	 * 会员ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long memberId;
	/**
	 * 课程ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long targetId;
	/**
	 * 收藏时间
	*/
	private Date collectTime;
	/**
	 * 会员名称
	 */
	@TableField(exist = false)
	private String memberName;
	/**
	 * 课程名称
	 */
	@TableField(exist = false)
	private String targetName;

}
